﻿using System.Windows.Forms;
using System;
using System.Drawing;
namespace RollBack.src.ui {
	/// <summary>
	/// Encapsulates the right hand side destination folder panel.
	/// </summary>
	partial class BackupDestinationPanel {
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing) {
			if (disposing && (components != null)) {
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		#region Component Designer generated code

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent( ) {
            this.components = new System.ComponentModel.Container();
            this.m_statusText = new System.Windows.Forms.TextBox();
            this.m_status_text2 = new System.Windows.Forms.TextBox();
            this.m_progressIndicator = new System.Windows.Forms.ProgressBar();
            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
            this.m_runStatsView = new RollBack.src.ui.RunStatsView();
            this.panel1 = new System.Windows.Forms.Panel();
            this.Progress = new System.Windows.Forms.Label();
            this.panel2 = new System.Windows.Forms.Panel();
            this.m_startButton = new System.Windows.Forms.Button();
            this.m_advancedButton = new System.Windows.Forms.Button();
            this.m_stopButton = new System.Windows.Forms.Button();
            this.t1 = new System.Windows.Forms.ToolTip(this.components);
            this.t2 = new System.Windows.Forms.ToolTip(this.components);
            this.t3 = new System.Windows.Forms.ToolTip(this.components);
            this.tableLayoutPanel1.SuspendLayout();
            this.panel2.SuspendLayout();
            this.SuspendLayout();
            // 
            // m_statusText
            // 
            this.m_statusText.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.m_statusText.Dock = System.Windows.Forms.DockStyle.Fill;
            this.m_statusText.Location = new System.Drawing.Point(3, 3);
            this.m_statusText.Multiline = true;
            this.m_statusText.Name = "m_statusText";
            this.m_statusText.ReadOnly = true;
            this.m_statusText.Size = new System.Drawing.Size(833, 46);
            this.m_statusText.TabIndex = 10;
            this.m_statusText.Text = "Not Running";
            // 
            // m_status_text2
            // 
            this.m_status_text2.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.m_status_text2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.m_status_text2.Location = new System.Drawing.Point(4, 122);
            this.m_status_text2.Margin = new System.Windows.Forms.Padding(4);
            this.m_status_text2.Multiline = true;
            this.m_status_text2.Name = "m_status_text2";
            this.m_status_text2.ReadOnly = true;
            this.m_status_text2.Size = new System.Drawing.Size(579, 39);
            this.m_status_text2.TabIndex = 15;
            // 
            // m_progressIndicator
            // 
            this.m_progressIndicator.Location = new System.Drawing.Point(306, 20);
            this.m_progressIndicator.Maximum = 1;
            this.m_progressIndicator.Name = "m_progressIndicator";
            this.m_progressIndicator.Size = new System.Drawing.Size(124, 17);
            this.m_progressIndicator.TabIndex = 16;
            // 
            // tableLayoutPanel1
            // 
            this.tableLayoutPanel1.ColumnCount = 1;
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel1.Controls.Add(this.m_statusText, 0, 0);
            this.tableLayoutPanel1.Controls.Add(this.m_runStatsView, 0, 1);
            this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 58);
            this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
            this.tableLayoutPanel1.Name = "tableLayoutPanel1";
            this.tableLayoutPanel1.RowCount = 2;
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel1.Size = new System.Drawing.Size(440, 134);
            this.tableLayoutPanel1.TabIndex = 17;
            // 
            // m_runStatsView
            // 
            this.m_runStatsView.Dock = System.Windows.Forms.DockStyle.Fill;
            this.m_runStatsView.Location = new System.Drawing.Point(4, 56);
            this.m_runStatsView.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
            this.m_runStatsView.Name = "m_runStatsView";
            this.m_runStatsView.Size = new System.Drawing.Size(831, 138);
            this.m_runStatsView.TabIndex = 11;
            // 
            // panel1
            // 
            this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel1.Location = new System.Drawing.Point(3, 3);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(581, 20);
            this.panel1.TabIndex = 19;
            // 
            // Progress
            // 
            this.Progress.AutoSize = true;
            this.Progress.Location = new System.Drawing.Point(304, 2);
            this.Progress.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.Progress.Name = "Progress";
            this.Progress.Size = new System.Drawing.Size(48, 13);
            this.Progress.TabIndex = 18;
            this.Progress.Text = "Progress";
            // 
            // panel2
            // 
            this.panel2.Controls.Add(this.Progress);
            this.panel2.Controls.Add(this.m_progressIndicator);
            this.panel2.Controls.Add(this.m_startButton);
            this.panel2.Controls.Add(this.m_advancedButton);
            this.panel2.Controls.Add(this.m_stopButton);
            this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel2.Location = new System.Drawing.Point(0, 0);
            this.panel2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
            this.panel2.MinimumSize = new System.Drawing.Size(0, 24);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(440, 58);
            this.panel2.TabIndex = 18;
            // 
            // m_startButton
            // 
            this.m_startButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.m_startButton.ImageIndex = 0;
            this.m_startButton.Location = new System.Drawing.Point(8, 6);
            this.m_startButton.Name = "m_startButton";
            this.m_startButton.Size = new System.Drawing.Size(76, 31);
            this.m_startButton.TabIndex = 3;
            this.m_startButton.Text = " Start";
            this.m_startButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.t1.SetToolTip(this.m_startButton, "Starts the Backup/Restore operation");
            this.m_startButton.UseVisualStyleBackColor = true;
            this.m_startButton.Click += new System.EventHandler(this.StartButtonClick);
            // 
            // m_advancedButton
            // 
            this.m_advancedButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.m_advancedButton.ImageIndex = 5;
            this.m_advancedButton.Location = new System.Drawing.Point(209, 6);
            this.m_advancedButton.Name = "m_advancedButton";
            this.m_advancedButton.Size = new System.Drawing.Size(76, 31);
            this.m_advancedButton.TabIndex = 13;
            this.m_advancedButton.Text = " Settings";
            this.m_advancedButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.t2.SetToolTip(this.m_advancedButton, "Opens the Advanced settings dialog for this job.");
            this.m_advancedButton.UseVisualStyleBackColor = true;
            this.m_advancedButton.Click += new System.EventHandler(this.m_advancedButton_Click);
            // 
            // m_stopButton
            // 
            this.m_stopButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.m_stopButton.ImageIndex = 8;
            this.m_stopButton.Location = new System.Drawing.Point(91, 6);
            this.m_stopButton.Name = "m_stopButton";
            this.m_stopButton.Size = new System.Drawing.Size(76, 31);
            this.m_stopButton.TabIndex = 5;
            this.m_stopButton.Text = "  Stop";
            this.m_stopButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.t1.SetToolTip(this.m_stopButton, "Stops the current Backup/Restore operation");
            this.m_stopButton.UseVisualStyleBackColor = true;
            this.m_stopButton.Click += new System.EventHandler(this.pauseButton_Click);
            // 
            // BackupDestinationPanel
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.Controls.Add(this.panel2);
            this.Controls.Add(this.tableLayoutPanel1);
            this.Name = "BackupDestinationPanel";
            this.Size = new System.Drawing.Size(440, 192);
            this.tableLayoutPanel1.ResumeLayout(false);
            this.tableLayoutPanel1.PerformLayout();
            this.panel2.ResumeLayout(false);
            this.panel2.PerformLayout();
            this.ResumeLayout(false);

		}

		void m_advancedButton_Click(object sender, System.EventArgs e)
		{
			if (m_advancedButtonClickHandler != null)
			{
				m_advancedButtonClickHandler.Invoke(sender,e);
			}
		}

		void pauseButton_Click(object sender, System.EventArgs e)
		{
			if (m_pauseButtonClickHandler != null)
			{
				m_pauseButtonClickHandler.Invoke(sender, e);
			}
		}

		#endregion

		public System.Windows.Forms.Button m_startButton;
		public System.Windows.Forms.Button m_stopButton;
		private System.Windows.Forms.TextBox m_statusText;
		public System.Windows.Forms.Button m_advancedButton;

		private TextBox m_status_text2;
		private ProgressBar m_progressIndicator;
		/// <summary>
		/// The last time the progress indicator was updated
		/// </summary>
		private DateTime m_progressIndicatorLastUpdate = DateTime.Now;
		private TableLayoutPanel tableLayoutPanel1;
		private Label Progress;
		private Panel panel1;
		private Panel panel2;
		private RunStatsView m_runStatsView;
		private DateTime m_lastUpdateTime;
		private ToolTip t1;
		private ToolTip t2;
		private ToolTip t3;
	}
}
